﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace Core.DataAccess.Model.Project.Order
{
    public partial class OrderBasis
    {
        public int OrderKey { get; set; }
        public string Phone { get; set; }
        public string ProjectToken { get; set; }
        public int UserKey { get; set; }


        /// <summary>
        /// 优惠卷码
        /// </summary>
        public string CouponCode { get; set; }

        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal CouponCodeMoney { get; set; }


        /// <summary>
        /// 1 销售 2采购
        /// </summary>
        public int OrderType { get; set; }
        public int OrderStatus { get; set; }
        public decimal Price { get; set; }
        public decimal DiscountPrice { get; set; }
        public decimal Payment { get; set; }
        public string Content { get; set; }
        public DateTime? RegTime { get; set; }
        public DateTime? EndTime { get; set; }
        public DateTime? UpdateLastTime { get; set; }
        public DateTime? CompleteTime { get; set; }


        [NotMapped]
        public List<OrderAddress> OrderAddress { get; set; }

        [NotMapped]
        public List<OrderLog> OrderLog { get; set; }
        [NotMapped]
        public List<OrderPay> OrderPay { get; set; }
        [NotMapped]
        public List<OrderProduct> OrderProduct { get; set; }
        [NotMapped]
        public List<OrderRefund> OrderRefund { get; set; }
        [NotMapped]
        public List<OrderServe> OrderServe { get; set; }
        [NotMapped]
        public List<OrderShipments> OrderShipments { get; set; }
        [NotMapped]
        public List<OrderReturns> OrderReturns { get; set; }
        [NotMapped]
        public List<OrderAccident> OrderAccident { get; set; }
        
    }
}
